package com.jqb.webservice.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.jqb.webservice.service.impl.MixService;
import com.jqb.webservice.service.impl.MixServiceImplService;


public class WebServiceClient {
		//服务网址
		private  static String webUrl = "http://localhost:9999/service?wsdl";
		//服务命名空间[所有QName必须加上此命名空间]
		private static String serviceNs = "http://impl.service.webservice.jqb.com/";
		//服务名称
		private static String serviceName = "MixServiceImplService";
	
		public static void main(String[] args) throws Exception{
			URL url = new URL(webUrl);
			QName qname = new QName(serviceNs,serviceName);
			MixServiceImplService mixServiceImpl = new MixServiceImplService(url,qname);
			MixService mixService = mixServiceImpl.getMixServiceImplPort();
			try {
				mixService.login("admin", "admin1231");
			} catch (Exception e) {
				System.out.println(e.getMessage());
			}
		}

}
